<template>
    <el-table-column  align="left" v-bind="$attrs" v-on="$listeners"  width="150"  :formatter="timeFormatter"/>
</template>
<script>
    import {subTime} from "@/utils/common";
    export default {
        name:"MyTimeColumn",
        methods:{
            timeFormatter(row){
                return subTime(row[this.$attrs.prop])
            },
        }
    }
</script>
